<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta charset="utf-8">
	<title>学校基本信息管理</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="stylesheet" href="../layui/css/layui.css" media="all">
	<link rel="stylesheet" href="../css/school.css" media="all">
	<link rel="stylesheet" href="../css/public.css" media="all">
</head>
<body>
	<!-- 添加学校弹窗 -->
	<div id="add-schoolLayer" class="add-schoolLayer">
		<form class="layui-form" action="">
			<div class="wrap">
				<div class="layui-form-item">
					<label class="layui-form-label">学校名称</label>
					<div class="layui-input-block">
						<input type="text" autocomplete="off" name="schoolName" id="schoolName" placeholder="请输入学校名称" class="layui-input" />
					</div>
				</div>
			  	<div class="layui-form-item">
				    <label class="layui-form-label">学校编号</label>
				    <div class="layui-input-block">
				    	<input type="text" autocomplete="off" name="schoolid" id="schoolid" lay-verify="required" placeholder="请输入学校编号" class="layui-input" />
				    </div>
			  	</div>
				<div class="layui-form-item">
					<label class="layui-form-label">学校类型:</label>
					<div class="layui-input-block">
					    <select name="schooltype" id="schooltypelayer" lay-filter="schooltypelayer">
					    	<option value='00'>请选择学校类型</option>
						</select>
					</div>
				</div>
				<div class="layui-form-item">
				    <label class="layui-form-label">管理员</label>
				    <div class="layui-input-block">
				    	<input type="text" id="adminuser" name="adminuser" autocomplete="off" placeholder="用户名" disabled="disabled" class="layui-input layui-disabled"  lay-verify="required">
				    </div>
				</div>
				<div class="layui-form-item">
				    <label class="layui-form-label">管理员电话</label>
				    <div class="layui-input-block">
				    	<input type="text" autocomplete="off" class="layui-input" id="phone" name="phone" placeholder="请输入管理员电话" lay-verify="required|phone">
				    </div>
				</div>
			  	<div class="layui-form-item">
				    <div class="layui-input-block">
				      <button type="button" class="layui-btn" style="float: right;" lay-filter="addschool" id="addschool" lay-submit=""> 保 存</button>
				    </div>
			  	</div>
			</div>
		</form>
	</div>

	<!-- 修改学校弹窗Start -->
	<div id="editschoolLayer" class="add-schoolLayer">
		<form class="layui-form" action="">
			<div class="wrap">
				<div class="layui-form-item">
					<label class="layui-form-label">学校名称</label>
					<div class="layui-input-block">
						<input type="text" autocomplete="off" name="inpeditschoolName" id="inpeditschoolName" class="layui-input" />
					</div>
				</div>
			  	<div class="layui-form-item">
				    <label class="layui-form-label">学校编号</label>
				    <div class="layui-input-block">
				    	<input type="text" disabled name="inpeditschoolid" id="inpeditschoolid" class="layui-input" />
				    </div>
			  	</div>
				<div class="layui-form-item">
					<label class="layui-form-label">学校类型:</label>
					<div class="layui-input-block">
					    <input type="text" disabled name="inpeditschooltype" id="inpeditschooltype" class="layui-input" />
					</div>
				</div>
				<!-- <div class="layui-form-item">
				    <label class="layui-form-label">管理员</label>
				    <div class="layui-input-block">
				    	<input type="text" id="editadminuser" name="editadminuser" autocomplete="off" disabled="disabled" class="layui-input layui-disabled">
				    </div>
				</div>
				<div class="layui-form-item">
				    <label class="layui-form-label">管理员电话</label>
				    <div class="layui-input-block">
				    	<input type="text" autocomplete="off" class="layui-input" id="editphone" name="editphone">
				    </div>
				</div> -->
			  	<div class="layui-form-item">
				    <div class="layui-input-block">
				      <button type="button" class="layui-btn" style="float: right;" id="editschool"> 保 存</button>
				    </div>
			  	</div>
			</div>
		</form>
	</div>
	<!-- 修改学校弹窗Start -->
	
	<div class="school-con">
		<blockquote class="layui-elem-quote not_border_left">
		<form class="layui-form" action="">
			<div class="layui-inline"> 				  
			  	<div class="layui-input-inline">
				    <select name="schooltype" id="schooltype" lay-filter="schooltype">
				    	<option value='00'>请选择学校类型</option>
					</select>
				</div>
				<div class="layui-input-inline">
					<input type="text" autocomplete="off" name="schoolname" id="schoolname" lay-verify="title" lay-event="userName" placeholder="请输入学校名称" class="layui-input">
			   </div>
			   <div class="layui-inline">
      				<button id="seleBtn" type="button" class="layui-btn layui-bg-blue">查询</button>
			   </div>
			</div>
		</form>
		</blockquote>
		
		<script type="text/html" id="toolbarDemo">
			<button type="button" class="layui-btn layui-bg-blue" id="" lay-event="addSchool" lay-filter="addSchool">添加学校</button>
		</script>

		<table class="layui-hide" id="tabschool" lay-filter="tabschool"></table>

		<script type="text/html" id="schoolTypeText">
			<span>{{ d.schoolType == '10001' ? '小学' : (d.schoolType == '10002' ? '初中' : (d.schoolType == '10003' ? '高中' : (d.schoolType == '10004' ? '完全小学' : (d.schoolType == '10005' ? '完全中学' : '完全学校'))) ) }}</span>
		</script>
		
		<script type="text/html" id="barDemo">
			<a class="layui-btn layui-btn-xs layui-bg-blue" lay-event="editschool">编辑</a>
			<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delschool">删除</a>
		</script>
	</div>
	<script src="../js/jquery-3.3.1.js"></script>
	<script src="../layui/layui.js" charset="utf-8"></script>
	<script src="../js/schoolManagement/school.js"></script>
	
</body>
</html>